package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.library.common.GeoPoint;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallRideCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallRideState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 一键叫车行程表
 * </p>
 *
 * @author Dell
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SimpleCallRide对象", description="一键叫车行程表")
public class SimpleCallRide implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "行程编号")
    private String number;

    @ApiModelProperty(value = "出发地坐标")
    private GeoPoint origin;

    @ApiModelProperty(value = "出发地名称")
    private String originName;

    @ApiModelProperty(value = "出发地详细名称")
    private String originPlaceName;

    @ApiModelProperty(value = "实际接到坐标")
    private GeoPoint realOrigin;

    @ApiModelProperty(value = "实际接到地名称")
    private String realOriginName;

    @ApiModelProperty(value = "实际接到地详细名称")
    private String realOriginPlaceName;

    @ApiModelProperty(value = "目的地坐标")
    private GeoPoint destination;

    @ApiModelProperty(value = "目的地名称")
    private String destinationName;

    @ApiModelProperty(value = "目的地详细名称")
    private String destinationPlaceName;

    @ApiModelProperty(value = "乘客Id")
    private Long customerId;

    @ApiModelProperty(value = "车辆Id")
    private Long taxiId;

    @ApiModelProperty(value = "司机Id")
    private Long driverId;

    @ApiModelProperty(value = "司机公司Id")
    private Long companyId;

    @ApiModelProperty(value = "区域Id")
    private Long areaId;

    @ApiModelProperty(value = "叫车所属的区域Id")
    private Long callRegionId;

    @ApiModelProperty(value = "监管区域")
    private Long cantonId;

    @ApiModelProperty(value = "行程类型 0:pick_up[司机已接单],1:in_area[在圈内],2:start[行程已开始],3:end[行程已结束]")
    private SimpleCallRideState state;

    @ApiModelProperty(value = "是否已取消 0:no[未取消],1:yes[已取消]")
    private Boolean isCancel;

    @ApiModelProperty(value = "是否已结束 0:no[未结束],1:yes[已结束]")
    private Boolean isFinished;

    @ApiModelProperty(value = "距离")
    private BigDecimal distance;

    @ApiModelProperty(value = "simple_call的Id")
    private Long refId;

    @ApiModelProperty(value = "叫车类型")
    private SimpleCallRideCategory category;

    @ApiModelProperty(value = "实际接到乘客的时间戳")
    private Long contractedTimestamp;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}
